package com.cxyzy.basic_libs.view

import android.app.Activity
import android.os.Build
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import com.cxyzy.basic_libs.addView
import com.cxyzy.basic_libs.addViewMatchParent
import com.cxyzy.basic_libs.anim.CircleAnim
import com.cxyzy.basic_libs.getContentView


@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
fun Activity.无限边框(parentView: ViewGroup? = null) =
    addView(FrameView(this), parentView ?: getContentView(this))

fun Activity.无限圆环(parentView: ViewGroup? = null) =
    addViewMatchParent(CircleAnim(this), parentView ?: getContentView(this))

fun Activity.圆圈(parentView: ViewGroup? = null) =
    addView(ShiningPoint(this), parentView ?: getContentView(this))